package com.iretailer.report.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @Auther: xjw
 * @Date: 2019/8/8 0008 21:14
 * @Description:
 */
@TableName("f_face_alarm_record")
public class FaceAlarmRecord {

    @JSONField(name = "Id")
    @TableId(value = "Id", type = IdType.AUTO)
    private Long id;

    @JSONField(name = "PersonId")
    @TableField(value = "PersonId")
    private String personId;

    // 年龄区间，1: [0-18], 2: [19-35], 3: [36-55], 4 56+
    @JSONField(name = "AgeType")
    @TableField(value = "AgeType")
    private String ageType;

    // 1为男性 0 为女性
    @JSONField(name = "Gender")
    @TableField(value = "Gender")
    private Integer gender;

    @JSONField(name = "Date")
    @TableField(value = "Date")
    private LocalDate date;

    @JSONField(name = "DateTime")
    @TableField(value = "DateTime")
    private LocalDateTime dateTime;

    @JSONField(name = "Did")
    @TableField(value = "Did")
    private Long did;

    @JSONField(name = "ImageUrl")
    @TableField(value = "ImageUrl")
    private String imageUrl;

    // 推送成功，成功为1，失败为-1
    @JSONField(name = "Status")
    @TableField(value = "Status")
    private Integer status;

    @JSONField(name = "ImageKey")
    @TableField(exist = false)
    private String imageKey;

    @JSONField(name = "Image")
    @TableField(exist = false)
    private String image;

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPersonId() {
        return personId;
    }

    public void setPersonId(String personId) {
        this.personId = personId;
    }

    public String getAgeType() {
        return ageType;
    }

    public void setAgeType(String ageType) {
        this.ageType = ageType;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public LocalDateTime getDateTime() {
        return dateTime;
    }

    public void setDateTime(LocalDateTime dateTime) {
        this.dateTime = dateTime;
    }

    public Long getDid() {
        return did;
    }

    public void setDid(Long did) {
        this.did = did;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getImageKey() {
        return imageKey;
    }

    public void setImageKey(String imageKey) {
        this.imageKey = imageKey;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }
}
